package com.zhanglijie.base.threadmethod.callable;

import java.util.concurrent.Callable;

/**
 * @author zhanglijie
 * @version 1.0
 * @since 1.1.0 2022/3/13 0013 1:14
 * 这里以返回Integer举例子
 */
public class Mythread implements Callable<Integer> {
    @Override
    public Integer call() throws Exception {
        Thread.sleep(1000);
        System.out.println("实现Callable方式 有返回值，返回int 200");
        return 200;
    }
}
